import { Cookie } from '@/utils/catch'

const TokenKey = 'Admin-Token'

export function getToken() {
  return Cookie.get(TokenKey)
}

export async function setToken(token) {
  const result = Cookie.set(TokenKey, token)
  return result
}

export function removeToken() {
  return Cookie.remove(TokenKey)
}
